#ifndef COMPRESSSEND_H
#define COMPRESSSEND_H
#include <QImage>
#define IMAGE_WIDTCH        8424
#define IMAGE_HEIGHT        6032
class CompressSend
{
//    Q_OBJECT
public:
    CompressSend(QImage img, unsigned char *img_point,QList<QByteArray>* transList,unsigned int* transCameraIndex,
                 unsigned short picStartX,unsigned short picStartY,unsigned short picWidth,unsigned short picHeight,unsigned int photoindex);
    bool compressSendImg();
    QByteArray IntToArray(int v);
    QByteArray ShortToArray(unsigned short v);

signals:
//    void CompressPictureOver();
private:
    unsigned char *send_img_point_;
    QImage send_img_;
    QList<QByteArray>* list;
    unsigned int* cameraIndex;
    static int picIndex;
    unsigned short pic_start_X_;
    unsigned short pic_start_Y_;
    unsigned short pic_width_;
    unsigned short pic_height_;
    unsigned int photo_index_;
};

#endif // COMPRESSSEND_H
